package com.un.ebs.inventory.domain;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Component;
import lombok.Data;
import com.un.ebs.core.metadata.DbField;

/**
 * (InventoryAge)表实体类
 *
 * @author liubo
 * @since 2021-10-25 10:48:09
 */
@Data
@Component
@TableName("tb_inventory_age")
@SuppressWarnings("serial")
public class InventoryAge extends Model<InventoryAge> {

    @TableId(value = "sku_id", type = IdType.UUID)
    private String skuId;


    @DbField(name = "sku_code", length = 100, precision = 0)
    private String skuCode;

    @DbField(name = "sku_name", length = 100, precision = 0)
    private String skuName;

    @DbField(name = "class_name", length = 40, precision = 0)
    private String className;

    @DbField(name = "y1_qty", length = 38, precision = 4)
    private Double y1Qty;

    @DbField(name = "y1_money", length = 38, precision = 4)
    private Double y1Money;

    @DbField(name = "y2_qty", length = 38, precision = 4)
    private Double y2Qty;

    @DbField(name = "y2_money", length = 38, precision = 4)
    private Double y2Money;

    @DbField(name = "y3_qty", length = 38, precision = 4)
    private Double y3Qty;

    @DbField(name = "y3_money", length = 38, precision = 4)
    private Double y3Money;

    @DbField(name = "y4_qty", length = 38, precision = 4)
    private Double y4Qty;

    @DbField(name = "y4_money", length = 38, precision = 4)
    private Double y4Money;

    @DbField(name = "y5_qty", length = 38, precision = 4)
    private Double y5Qty;

    @DbField(name = "y5_money", length = 38, precision = 4)
    private Double y5Money;

    @DbField(name = "y6_qty", length = 38, precision = 4)
    private Double y6Qty;

    @DbField(name = "y6_money", length = 38, precision = 4)
    private Double y6Money;

    @DbField(name = "total_qty", length = 38, precision = 4)
    private Double totalQty;

    @DbField(name = "total_money", length = 38, precision = 4)
    private Double totalMoney;

    @DbField(name = "tenant_id", length = 40, precision = 0)
    private String tenantId;

    @Override
    protected Serializable pkVal() {
        return this.skuId;
    }

}
